﻿<UserControl xmlns:Component="clr-namespace:WpfAdvControls.Component;assembly=WpfAdvControls"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:TfsBranchLib2.View"
             xmlns:StatusPanel="clr-namespace:WpfAdvControls.StatusPanel;assembly=WpfAdvControls"
             x:Class="TfsBranchLib2.View.BranchListBox"
             mc:Ignorable="d"
             d:DesignHeight="332.862" d:DesignWidth="413.428"
             xmlns:View="clr-namespace:TfsBranchLib2.View">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="28" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <Button Content="Recent branch sets" Width="120" Height="23" Margin="2" Click="SelectBranchSet" />
            <Button Content="Select branches" Width="120" Height="23" Margin="2" Click="EditBranchList" />
        </StackPanel>
        <ListBox x:Name="branchListView" SelectionMode="Extended" Grid.Row="1">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <View:BranchItemControl Branch="{Binding}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>